#include "myfunction.h"
#include "WhiteFrame.h"
#include "WhiteRect.h"
#include "ListXSTH.h"
#if !defined(AFX_DLGXSTH_H__4BADB492_F9CA_4017_BA05_3902BEE0944C__INCLUDED_)
#define AFX_DLGXSTH_H__4BADB492_F9CA_4017_BA05_3902BEE0944C__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// DlgXSTH.h : header file
//
#define IDD_DIALOG_XSTH  142
/////////////////////////////////////////////////////////////////////////////
// CDlgXSTH dialog

#include "DrawDlg.h"
class CDlgXSTH;
class CDrawTH : public CDrawDlg  
{
public:
	CListCtrl* GetListCtrl();
	CDrawTH(CDlgXSTH* dlg);
	virtual ~CDrawTH();
	virtual void PrintDlg(CDC* pDC, CPrintInfo* pInfo);
	virtual void PrintPageHeader(CDC* pDC, CPrintInfo* pInfo);

	CDlgXSTH*			parent;

};
class CDlgXSTH : public CDialog
{
// Construction
public:
	bool SetTheFocus();
	CString ChanShengPh();
	bool InitBaseInfo();
	bool InitnListTH();
	CDlgXSTH(bool	isxsth,CWnd* pParent = NULL);   // standard constructor

// Dialog Data
	//{{AFX_DATA(CDlgXSTH)
	enum { IDD = IDD_DIALOG_XSTH };
	CButton	m_btnOk;
	CButton	m_btnCancel;
	CButton	m_btnDel;
	CDateTimeCtrl	m_tcRq;
	CEdit	m_editThPh;
	CEdit	m_editDjPh;
	CComboBox	m_comboJsfs;
	CComboBox	m_comboJsr;
	CTime	m_tRq;
	int		m_iJsr;
	int		m_iJsfs;
	//}}AFX_DATA
	CString				m_strPh;
	CFont				m_font;
	CFont				m_headfont;
	CListXSTH*			m_plistTH;
	LRunSql				m_runsql;
	bool				m_bXsth;

	CWhiteFrame			m_wfRq;
	CWhiteFrame			m_wfJsfs;
	CWhiteFrame			m_wfJsr;

	CWhiteRect			m_wt;


	CDrawTH*			m_draw;
	friend	class CDrawTH ;
// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CDlgXSTH)
	public:
	virtual BOOL PreTranslateMessage(MSG* pMsg);
	virtual BOOL DestroyWindow();
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CDlgXSTH)
	virtual void OnOK();
	virtual BOOL OnInitDialog();
	afx_msg void OnButtonOk();
	afx_msg void OnMove(int x, int y);
	afx_msg void OnButtonDel();
	virtual void OnCancel();
	afx_msg void OnButtonPrint();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_DLGXSTH_H__4BADB492_F9CA_4017_BA05_3902BEE0944C__INCLUDED_)
